<?php
abstract class CommonController extends AbstractController
{
    protected $uid = 0;
	public function _init()
	{
	    $this->_checkLogin();
	}

	private function _checkLogin()
	{
	    $psdModelCls = new PassportModel();
	    $uid = $psdModelCls->adminIsLogined();
	    if(!$uid)
	    {
	        $this->view->setAutoDisplay(false);
            exit('请登陆');
	    }
	    $this->uid = $uid;
	}
}